<?php
change_password();
?>
<div class="container">
    <div class="content_mb">
        <?php include_once 'inc/left.php';?>

        <div class="content_mb_r">

            <?php include_once 'inc/post_property_top_center.php';?>
            <div style="margin-left: 20px;">
                <div class="title_mb_r3" >[Thay đổi mật khẩu]</div>
                <form name="changepassword" action="" method="post">
                    <div class="line_mb_r3" style="border: none">
                        <ul>
                            <?php if($success) {?>
                            <div style="float: left; font-size: 12px; border: 2px solid orange; padding: 5px; font-weight: bold; width: 93%; text-align:center; display:inline; margin-bottom:5px;"><?=$success?></div>
                                <? } ?>
                            <li>
                                <div class="line_left">[Tên đăng nhập]:</div>
                                <div class="line_right"><?php echo $_SESSION["login"]["username"];?></div>
                            </li>

                            <li>
                                <div class="line_left">[Mật khẩu cũ] :</div>
                                <div class="line_right"><input type="password" name="oldpass" style="width:95%;" value="<?=$_POST["oldpass"]?>" class="box" /><br /><font style="font-weight:normal"><?=$err["oldpass"]?></font></div>
                            </li>
                            <li>
                                <div class="line_left">[Mật khẩu mới] :</div>
                                <div class="line_right"><input type="password" name="newpass" style="width:95%;" value="" class="box" /><br /><font style="font-weight:normal"><?=$err["newpass"]?></font></div>
                            </li>
                            <li>
                                <div class="line_left">[Xác nhận mật khẩu] :</div>
                                <div class="line_right"><input type="password" name="renewpass" style="width:95%;" value="" class="box" /><br /><font style="font-weight:normal"><?=$err["renewpass"]?></font></div>
                            </li>

                            <li>
                                <div class="line_right2" style="float: none;text-align: center">
                                    <input type="image" name="changpass" value="" src="../images/btn_update.gif" style="border:none; background:none;" />
                                </div>
                            </li>

                        </ul>
                    </div>
                
                </form>
            </div>
        </div>

    </div>
</div>